import Vuerouter from 'vue-router'
//引入组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import ShopCarContainer from './components/tabbar/ShopCarContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import NewList from './components/news/NewList.vue'
import NewInfo from './components/news/NewInfo.vue'
var router = new Vuerouter({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/shopcar', component: ShopCarContainer },
        { path: '/search', component: SearchContainer },
        { path: '/home/newlist', component: NewList },
        { path: '/home/newinfo/:id', component: NewInfo }
    ],
    linkActiveClass: 'mui-active'
})
export default router